package com.secondary.market.service.impl;

import com.secondary.market.domain.Admin;
import com.secondary.market.mapper.AdminMapper;
import com.secondary.market.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;



@Service(value="adminService")
public class AdminServiceImpl implements AdminService {
	@Resource
	private AdminMapper am;

	@Override
	public Admin findAdmin(String username, String password) {
		return am.findAdmin(username,password);
	}

	@Override
	public Admin findAdminById(Integer id) {
		return am.findAdminById(id);
	}

	@Override
	public void updateAdmin(Admin admins) {
		 am.updateAdmin(admins);
	}


	

}
